package cn.zdm.demo2.auth.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZhaoDeman
 * @description
 * @date 2021-01-20
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "LOG_DESC")
public class LogDescPO implements Serializable {

    private static final long serialVersionUID = 834384348717871548L;

    /**
     * 主键
     */
    @TableField(value = "id")
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 用户名
     */
    @TableField(value = "userName")
    private String userName;

    /**
     * 访问时间
     */
    @TableField(value = "visitTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date visitTime;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

}
